package com.module.my.bean

import androidx.annotation.ColorRes
import androidx.annotation.DrawableRes
import androidx.annotation.Keep
import com.module.my.bean.IMyType.IListType
import java.io.Serializable

@Keep
data class MyBean(
    var name: String?,
    var right: String?,
    @ColorRes var rightColorRes: Int,
    var url: String?,
    @DrawableRes var idRes: Int,
    @IMyType.IListType var listType: Int
) : Serializable {

    constructor(name: String?, url: String?, @IMyType.IListType listType: Int) : this(
        name,
        null,
        0,
        url,
        0,
        listType
    )

    constructor(name: String?, @DrawableRes idRes: Int, @IMyType.IListType listType: Int) : this(
        name,
        null,
        0,
        null,
        idRes,
        listType
    )

    constructor(name: String?, right: String?, @DrawableRes idRes: Int, @IListType listType: Int)  : this(
        name,
        right,
        0,
        null,
        idRes,
        listType
    )
}